﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Date-css.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/adminStyle.css")" rel="stylesheet" type="text/css" />
        
   @* <script src="@Url.Content(" ~/Scripts/jquery-{version}.js")" type="text/javascript"></script>    
    <script src="../../Scripts/jquery-ui.js" type="text/javascript"></script>*@

   <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    @* <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>   *@
   
   @* <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>*@

    <link href="../../Scripts/media/css/demo_page.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/media/css/jquery.dataTables_themeroller.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/media/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/media/css/demo_table_jui.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/media/css/demo_table.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/media/js/jquery.dataTables.js" type="text/javascript"></script>
    <script src="../../Scripts/media/js/jquery.dataTables.min.js" type="text/javascript"></script>

    <link href="../../Content/Custom_popup.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/Custom_popup.js" type="text/javascript"></script>

    <script src="../../Scripts/jquery.form.js" type="text/javascript"></script>

    <script src="../../Scripts/script_validate.js" type="text/javascript"></script>

    @RenderSection("HeaderContent", required: false)
    <script type="text/javascript">

        function openChangePass() {
            var dt = new Date();
            var href = "/admin/UserChangePass?dt=" + dt.getTime();
            $("#popup_content").load(href);
        }
    
    </script>

</head>

@{
    var currentUserName = Session["_UserNameFull"].ToString();
    }

<body>
    <center>
        <div class="main Clearfix">
            <div class="Header Clearfix">

            <div class="loginInfo">
            <ul>
                @if (currentUserName != "")
                {                    
                    <li>
                        <span>Xin chào </span> @currentUserName
                    </li>
                    <li>
                        <a href="/admin/LogoutAction">Đăng xuất</a>
                    </li>
                    <li>
                        <a href="#" onclick="openChangePass()">Đổi mật khẩu</a>
                    </li>                    
                }
                else
                { 
                    <li>
                        <a href="/admin/LoginView">Đăng nhập</a>
                    </li>
                }
            </ul>                
            </div>
            </div>
            <div class="divmenu Clearfix">@Html.Partial("admin_menu_main")</div>
            <div class="divContent">
                <div class="Clearfix divTool">
                    @RenderSection("Toolbar", required: false)
                </div>
                <div class="divBody">
                    <div id="mainDiv">
                         <div id="wrapperDiv">  
                    @RenderBody()
                    </div>
                    </div>
                </div>
            </div>
        </div>
    </center>


    @*popup*@
     <center>
        <div id="popup-box" class="login-popup">
            <div class="popup_title">SpellPay</div>
            <div id="popup_content">           
            </div>
            <a href="#" class="close btn_r">
                <img src="../../Content/Image/iconTools/Close.png" /> 
                </a> 
        </div>


         <div id="alert-box" class="alert-popup">            
            <div id="alert_content" class="alert_txt">           
            </div>            
        </div>

    </center>

</body>
</html>
